#if !defined(SM__SPRITE_H)
#define SM__SPRITE_H

#include "swagme.h"

class Sprite {
  public:
    Sprite();
    Sprite(const char *file);
    ~Sprite();
    // draws the given frame of the given animation on the given surface at the given position
    int Draw(int animationIndex, int frameIndex, SDL_Surface *dst, int x, int y);
    int Blit(SDL_Surface *dst, int x, int y);
  private:
    char *SpriteImageFile; // image file to load sprite surface from
    SDL_Surface *pSpriteSurface; // surface with all frames of the sprite
    SDL_Rect Frame; // rect for the current frame
};

#endif // SM__SPRITE_H
